package scanner;

import java.util.Scanner;

public class ScannerDemo {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age;
        String name;
        String introduce;
        double weight;

        System.out.println("请输入您的姓名：");
        name= sc.next();
        System.out.println("请输入您的年龄：");
        age = sc.nextInt();
        System.out.println("请输入您的体重：");
        weight = sc.nextDouble();
        System.out.println("请自我介绍：");
        sc.nextLine(); //这里用来接收上个System.out.println()输出的回车。
        introduce = sc.nextLine();

        System.out.println("我叫:" + name+",今年："+age+"岁，体重："+weight+",个人介绍："+introduce);
    }
}
